package cn.cj.erp.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取项目相关配置
 *
 * @author chenjian
 */
@Component
@ConfigurationProperties(prefix = "config")
public class AppConfig {
    /**
     * 项目名称
     */
    private static String name;
    /**
     * 版本
     */
    private static String version;
    /**
     * 版权年份
     */
    private static String copyrightYear;

    public static String getName() {
        return name;
    }

    public void setName(String name) {
        AppConfig.name = name;
    }

    public static String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        AppConfig.version = version;
    }

    public static String getCopyrightYear() {
        return copyrightYear;
    }

    public void setCopyrightYear(String copyrightYear) {
        AppConfig.copyrightYear = copyrightYear;
    }
}
